package org.szgb.console.cxht.service;

import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import org.szgb.console.cxht.entity.CxhtLocationFormItem;
import org.szgb.console.cxht.mapper.CxhtLocationFormItemMapper;
import org.szgb.core.base.service.BaseService;

import java.util.List;

@Slf4j
@Service
public class CxhtLocationFormItemService extends BaseService<CxhtLocationFormItemMapper, CxhtLocationFormItem> {
    @Autowired
    public CxhtLocationFormItemService(CxhtLocationFormItemMapper cxhtLocationFormItemMapper) {
        super(cxhtLocationFormItemMapper);
    }

    @Transactional(readOnly = true)
    public List<CxhtLocationFormItem> findListByFormIdForForm(String formId){
        return mapper.findListByFormIdForForm(formId);
    }
}
